package com.lzy.crm.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.lzy.crm.base.mybatis.BaseMapper;
import com.lzy.crm.base.page.PageQuery;
import com.lzy.crm.dao.criteria.PpUserCriteria;
import com.lzy.crm.domain.PpUser;

public interface PpUserMapper extends BaseMapper<PpUser, PpUserCriteria>{
	
	
	
	public List<PpUser> getPpUserListByPhone(@Param("uphone")String Phone);
	
	/**
	 * 查询推广员
	 * @param userId
	 * @param phone
	 * @param pageQuery
	 * @return
	 */
	public List<PpUser> getNextUserList(@Param("uid")Integer uid,@Param("code")String code,@Param("phone")String phone,
			@Param("nxuid")String nxuid,@Param("realname")String realname,@Param("user_level")String user_level,@Param("pageQuery")PageQuery pageQuery);
	/**
	 * 查询用户
	 * @param userId
	 * @param phone
	 * @param pageQuery
	 * @return
	 */
	public List<PpUser> getUserList(@Param("code")String code,@Param("phone")String phone,
			@Param("nxuid")String nxuid,@Param("realname")String realname,@Param("user_level")String user_level,@Param("pageQuery")PageQuery pageQuery);
	

	/**
	 * 角色ID
	 * @param uid
	 * @param rid
	 * @return
	 */
	public Integer getNextUserCount(@Param("uid")Integer uid, @Param("rid")String rid);
	
	
}
